package com.winit.zone.model;


import com.winit.common.base.bean.BaseModel;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

@Data
@Entity
@DynamicUpdate
@DynamicInsert
@Table(name="ucloud_zone")
@NoArgsConstructor
public class UCloudZone extends BaseModel {

    @Id
    @GenericGenerator(name = "idGenerator", strategy = "uuid")
    @GeneratedValue(generator = "idGenerator")
    private String id;

    @Column(name = "code")
    private String code;

    @Column(name = "alias")
    private String alias;

    @Column(name = "parent_code")
    private String parentCode;


    @Column(name = "desc")
    private String desc;

    @Column(name = "status")
    private String status;

    @Column(name = "order_no")
    private String orderNo;
}
